#ifndef __LV_BARCODE_H__
#define __LV_BARCODE_H__

#ifdef __cplusplus
extern "C" {
#endif
#include "lv_conf.h"

#ifdef USE_LV_BARCODE

#include "lvgl/src/lv_core/lv_obj.h"

/**
 * Create an barcode objects
 * @param par pointer to an object, it will be the parent of the new button
 * @param width/height, the barcode shown width and height
 * @param bc_buf, barcode string
 * @return pointer to the created barcode
 */
lv_obj_t *barcode_create(lv_obj_t * par, uint16_t width, uint16_t height, const char *bc_buf);

#endif /* USE_LV_BARCODE */

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
